<?php
if(isset($message)){
?>
<div class="alert error">
	<p><?php echo $message; ?></p>
</div>
<?php
} 
?>

<section class="title">
	<?php if ($this->controller == 'admin_prizes' && $this->method === 'edit'): ?>
	<h4><?php echo sprintf(lang('escort_country_edit_title'), $country->name);?></h4>
	<?php else: ?>
	<h4><?php echo lang('escort_country_create_title');?></h4>
	<?php endif; ?>
</section>

<section class="item">
	<?php echo form_open_multipart(uri_string(), 'class="crud" id="prizes"'); ?>
	<div class="form_inputs">
		<ul>
			<li class="even">
				<label for="name"><?php echo lang('escort_country_name_title');?> <span>*</span></label>
				<div class="input"><?php echo  form_input('name', $country->name); ?></div>
			</li>
			<li class="even">
				<label for="image"><?php echo lang('escort_country_image_title');?> <span>*</span></label>
				<div class="input"><?php echo  form_upload('image', '', ''); ?></div>
			</li>
			<li class="even">
				<label for="image"><?php echo lang('escort_country_status_title');?> <span>*</span></label>
				<div class="input"><?php echo  form_checkbox('status', 1, $country->status); ?><label><?php echo lang('escort_country_status_active_title')?></label></div>
			</li>
		</ul>
	</div>
	<div><?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'cancel') )); ?></div>
	<?php echo form_close(); ?>
</section>